﻿<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
  <div class="container-fluid">
  <div class="navbar-header">
   <a class="navbar-brand" href="#">SELFINFO</a>
  </div>
  <ul class="nav navbar-nav">
     @{
        string selfactive="",pieceactive="",typeactive="";    
     }
     @if (ViewContext.RouteData.Values["controller"].ToString().ToUpper() == "SELFINFO") 
     {
         selfactive = "active";
     } 
     @if (ViewContext.RouteData.Values["controller"].ToString().ToUpper() == "PIECE")
     {
         pieceactive = "active";
     }
     @if (ViewContext.RouteData.Values["controller"].ToString().ToUpper() == "TYPE") 
     {
         typeactive = "active";
     }
    <li class='@selfactive'><a href="/selfinfo/selfinfo">INFO</a></li>
    <li class='@pieceactive'><a href="/selfinfo/piece" >PIECE</a></li>
    <li class='@typeactive'><a href="/selfinfo/type" >TYPE</a></li>
  </ul>
  </div>
</nav>